#include "PipelineElement.h"

PipelineElement::PipelineElement()
        : buffer(), processed(false)
{
}

PipelineElement::~PipelineElement()
{
}

const QByteArray& PipelineElement::result()
{
    if (!processed) {
        process();
        processed = true;
    }
    
    return buffer;
}


PipelineProcessingElement::PipelineProcessingElement()
        : PipelineElement()
{
}

PipelineProcessingElement::~PipelineProcessingElement()
{
}
